import service from '@/utils/request'

//新增教学计划
export const scheduleAddService = ()=>{
    return service.post('/plan')
}
//新增教学计划内容
export const scheduleAddContent =()=>{
    return service.post('/plan/addContents')
}


export const scheduleAddPlan=(classId,contents)=>{
    return service.post('/plan/addPlan?classId='+classId,contents)
}
// 开始上课
export const addClassAndGet = (courseManageId) => {
    console.log('发送开始上课请求，课程ID:', courseManageId);
    return service({
        url: '/class/addAndGet', // 修改为正确的接口路径
        method: 'post',
        params: {
            courseManageId: courseManageId
        },
        headers: {
            'Content-Type': 'application/json'
        }
    });
};
